package cn.itsource.autoconfiguration;

import cn.itsource.config.TXCosConfig;
import cn.itsource.template.TXCosTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program fccar_tt
 * @Description
 * @Author TT
 * @Date 2024/09/12 17:18
 * @Version 1.0
 */
@Configuration
@EnableConfigurationProperties(TXCosConfig.class)
public class TXCosAutoConfiguration {
    @Bean
    public TXCosTemplate getTXCosTemplate(TXCosConfig txCosConfig){
        return new TXCosTemplate(txCosConfig);
    }
}
